package com.test.netty.demo.util;

public class MyException extends Exception {

	private static final long serialVersionUID = -860234309982533481L;

	private int code=400;
	
	private String message;

	public MyException(String message){
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	@Override
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}

